/*****************************************************************************
*
*  PROJECT:     Multi Theft Auto v1.0
*  LICENSE:     See LICENSE in the top level directory
*  FILE:        sdk/gui/CGUIEvent.h
*  PURPOSE:     Event interface
*
*  Multi Theft Auto is available from http://www.multitheftauto.com/
*
*****************************************************************************/

#ifndef __CGUI_EVENT_H
#define __CGUI_EVENT_H

#include "CGUI.h"
#include "CGUITypes.h"

struct CGUIEventArgs
{
    CGUIElement*    pWindow;
};

struct CGUIKeyEventArgs
{
    CGUIElement*    pWindow;

    unsigned int    codepoint;
    CGUIKeys::Scan  scancode;
    unsigned int    sysKeys;
};

struct CGUIMouseEventArgs
{
    CGUIElement*                pWindow;

    CGUIPosition                position;
    CVector2D                   moveDelta;
    CGUIMouse::MouseButton      button;
    unsigned int                sysKeys;
    float                       wheelChange;
};

struct CGUIFocusEventArgs
{
    CGUIElement*                pActivatedWindow;
    CGUIElement*                pDeactivatedWindow;
};

#endif
